package pe.gob.mpfn.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pe.gob.mpfn.model.ExpedienteParte;


@Service
@Transactional
public class ExpedienteParteServiceImpl implements ExpedienteParteService {

	public long countAllExpedientePartes() {
        return ExpedienteParte.countExpedientePartes();
    }

	public void deleteExpedienteParte(ExpedienteParte expedienteParte) {
        expedienteParte.remove();
    }

	public ExpedienteParte findExpedienteParte(Integer id) {
        return ExpedienteParte.findExpedienteParte(id);
    }

	public List<ExpedienteParte> findAllExpedientePartes() {
        return ExpedienteParte.findAllExpedientePartes();
    }

	public List<ExpedienteParte> findExpedienteParteEntries(int firstResult, int maxResults) {
        return ExpedienteParte.findExpedienteParteEntries(firstResult, maxResults);
    }

	public void saveExpedienteParte(ExpedienteParte expedienteParte) {
        expedienteParte.persist();
    }

	public ExpedienteParte updateExpedienteParte(ExpedienteParte expedienteParte) {
        return expedienteParte.merge();
    }
}
